Skip to content

🧪 Verify Compressor::compress Parallel Execution#385

Merged
404Setup merged 1 commit intomainfrom
verify-parallel-compress-tests-10957149517226981161
Feb 24, 2026
Merged

🧪 Verify Compressor::compress Parallel Execution#385
404Setup merged 1 commit intomainfrom
verify-parallel-compress-tests-10957149517226981161

Conversation

@404Setup
Copy link
Copy Markdown
Owner

Added comprehensive tests for Compressor::compress parallel execution path in tests/parallel_test.rs. The new tests cover:

  • Boundary condition (256KB + 1 byte) to ensure the parallel threshold is respected.
  • Large input (10MB) to verify correct chunking and concatenation.
  • Zlib and Gzip wrappers to ensure they work correctly with parallel deflate.
  • Error handling for insufficient output space in parallel mode.

This addresses the testing gap for the parallel compression logic which splits large inputs into 256KB chunks using Rayon.


PR created automatically by Jules for task 10957149517226981161 started by @404Setup

- Renamed `test_parallel_compression_roundtrip` to `test_parallel_deflate_1mb` for clarity.
- Added `test_parallel_deflate_boundary` to test the 256KB threshold trigger.
- Added `test_parallel_deflate_large` (10MB) to verify scalability.
- Added `test_parallel_zlib_large` and `test_parallel_gzip_large` (5MB) to cover format wrappers.
- Added `test_parallel_insufficient_space` to verify error propagation in parallel mode.

These tests ensure that the parallel execution path, which activates for inputs > 256KB, functions correctly across different formats and handles edge cases like buffer limits properly.

Co-authored-by: 404Setup <[email protected]>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@404Setup 404Setup merged commit e33b3e6 into main Feb 24, 2026
1 check passed
@404Setup 404Setup deleted the verify-parallel-compress-tests-10957149517226981161 branch February 24, 2026 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant